﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="PRStatisticbyWeek.aspx.cs" Inherits="StatisticData_TimeStatistic_PRStatisticbyWeek" Title="按日历周统计最终合格率" %>

<%@ Register Assembly="ZedGraph.Web" Namespace="ZedGraph.Web" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div>
    <br />
        <asp:Panel ID="Panel1" runat="server" Height="26px">
            选择要查询的季度：<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
    </asp:DropDownList>
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查 询" />
        </asp:Panel>
    <br />
        按日历周统计最终合格率情况：<br />
    <table style="width: 910px; height: 124px">
        <tr>
            <td style="vertical-align: top; width: 232px">
                <br />
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    BackColor="White" BorderColor="White" BorderStyle="Ridge" 
                    BorderWidth="2px" CellPadding="3"
                    CellSpacing="1" EmptyDataText="没有相关数据" GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging"
                    Width="280px" PageSize="15">
                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                    <Columns>
                        <asp:BoundField DataField="DayTime" HeaderText="日期" />
                        <asp:BoundField DataField="Total" HeaderText="检验数" />
<asp:BoundField DataField="element" HeaderText="合格数"></asp:BoundField>
                        <asp:BoundField DataField="Quantity" HeaderText="合格率" HtmlEncode="False" 
                            DataFormatString="{0:F3}"/>
                    </Columns>
                    <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                </asp:GridView>
            </td>
            <td style="width: 295px; vertical-align: top;">
                <cc1:zedgraphweb id="ZedGraphWeb1" runat="server" height="375" onrendergraph="ZedGraphWeb1_RenderGraph"
                    width="800" Visible="False">
                    <XAxis AxisColor="Black" Cross="0" CrossAuto="True" IsOmitMag="False" IsPreventLabelOverlap="True"
                        IsShowTitle="True" IsTicsBetweenLabels="True" IsUseTenPower="False" IsVisible="True"
                        IsZeroLine="False" MinSpace="0" Title="" Type="Linear">
                        <FontSpec Angle="0" Family="Arial" FontColor="Black" IsBold="True" IsItalic="False"
                            IsUnderline="False" Size="14" StringAlignment="Center">
                            <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                                IsVisible="True" RangeMax="0" RangeMin="0" Type="None"  />
                            <Border Color="Black" InflateFactor="0" IsVisible="False" Width="1"  />
                        </FontSpec>
                        <MinorGrid Color="Black" DashOff="5" DashOn="1" IsVisible="False" PenWidth="1"  />
                        <MinorTic Color="Black" IsInside="True" IsOpposite="True" IsOutside="True" PenWidth="1"
                            Size="5"  />
                        <MajorTic Color="Black" IsInside="True" IsOpposite="True" IsOutside="True" PenWidth="1"
                            Size="5"  />
                        <Scale Align="Center" Format="g" FormatAuto="False" IsReverse="False" Mag="0" MagAuto="False"
                            MajorStep="1" MajorStepAuto="True" MajorUnit="Day" Max="0" MaxAuto="True" MaxGrace="0.1"
                            Min="0" MinAuto="True" MinGrace="0.1" MinorStep="1" MinorStepAuto="True" MinorUnit="Day">
                            <FontSpec Angle="0" Family="Arial" FontColor="Black" IsBold="False" IsItalic="False"
                                IsUnderline="False" Size="14" StringAlignment="Center">
                                <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                                    IsVisible="True" RangeMax="0" RangeMin="0" Type="None"  />
                                <Border Color="Black" InflateFactor="0" IsVisible="False" Width="1"  />
                            </FontSpec>
                        </Scale>
                        <MajorGrid Color="Black" DashOff="5" DashOn="1" IsVisible="False" PenWidth="1"  />
                    </XAxis>
                    <Y2Axis AxisColor="Black" Cross="0" CrossAuto="True" IsOmitMag="False" IsPreventLabelOverlap="True"
                        IsShowTitle="True" IsTicsBetweenLabels="True" IsUseTenPower="False" IsVisible="False"
                        IsZeroLine="True" MinSpace="0" Title="" Type="Linear">
                        <FontSpec Angle="0" Family="Arial" FontColor="Black" IsBold="True" IsItalic="False"
                            IsUnderline="False" Size="14" StringAlignment="Center">
                            <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                                IsVisible="True" RangeMax="0" RangeMin="0" Type="None"  />
                            <Border Color="Black" InflateFactor="0" IsVisible="False" Width="1"  />
                        </FontSpec>
                        <MinorGrid Color="Black" DashOff="5" DashOn="1" IsVisible="False" PenWidth="1"  />
                        <MinorTic Color="Black" IsInside="True" IsOpposite="True" IsOutside="True" PenWidth="1"
                            Size="5"  />
                        <MajorTic Color="Black" IsInside="True" IsOpposite="True" IsOutside="True" PenWidth="1"
                            Size="5"  />
                        <Scale Align="Center" Format="g" FormatAuto="False" IsReverse="False" Mag="0" MagAuto="False"
                            MajorStep="1" MajorStepAuto="True" MajorUnit="Day" Max="0" MaxAuto="True" MaxGrace="0.1"
                            Min="0" MinAuto="True" MinGrace="0.1" MinorStep="1" MinorStepAuto="True" MinorUnit="Day">
                            <FontSpec Angle="-90" Family="Arial" FontColor="Black" IsBold="False" IsItalic="False"
                                IsUnderline="False" Size="14" StringAlignment="Center">
                                <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                                    IsVisible="True" RangeMax="0" RangeMin="0" Type="None"  />
                                <Border Color="Black" InflateFactor="0" IsVisible="False" Width="1"  />
                            </FontSpec>
                        </Scale>
                        <MajorGrid Color="Black" DashOff="5" DashOn="1" IsVisible="False" PenWidth="1"  />
                    </Y2Axis>
                    <MasterPaneBorder Color="Black" InflateFactor="0" IsVisible="True" Width="1"  />
                    <MasterPaneFill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100"
                        IsScaled="True" IsVisible="True" RangeMax="0" RangeMin="0" Type="Solid"  />
                    <PaneBorder Color="Black" InflateFactor="0" IsVisible="True" Width="1"  />
                    <YAxis AxisColor="Black" Cross="0" CrossAuto="True" IsOmitMag="False" IsPreventLabelOverlap="True"
                        IsShowTitle="True" IsTicsBetweenLabels="True" IsUseTenPower="False" IsVisible="True"
                        IsZeroLine="True" MinSpace="0" Title="" Type="Linear">
                        <FontSpec Angle="-180" Family="Arial" FontColor="Black" IsBold="True" IsItalic="False"
                            IsUnderline="False" Size="14" StringAlignment="Center">
                            <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                                IsVisible="True" RangeMax="0" RangeMin="0" Type="None"  />
                            <Border Color="Black" InflateFactor="0" IsVisible="False" Width="1"  />
                        </FontSpec>
                        <MinorGrid Color="Black" DashOff="5" DashOn="1" IsVisible="False" PenWidth="1"  />
                        <MinorTic Color="Black" IsInside="True" IsOpposite="True" IsOutside="True" PenWidth="1"
                            Size="5"  />
                        <MajorTic Color="Black" IsInside="True" IsOpposite="True" IsOutside="True" PenWidth="1"
                            Size="5"  />
                        <Scale Align="Center" Format="g" FormatAuto="False" IsReverse="False" Mag="0" MagAuto="False"
                            MajorStep="1" MajorStepAuto="True" MajorUnit="Day" Max="0" MaxAuto="True" MaxGrace="0.1"
                            Min="0" MinAuto="True" MinGrace="0.1" MinorStep="1" MinorStepAuto="True" MinorUnit="Day">
                            <FontSpec Angle="90" Family="Arial" FontColor="Black" IsBold="False" IsItalic="False"
                                IsUnderline="False" Size="14" StringAlignment="Center">
                                <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                                    IsVisible="True" RangeMax="0" RangeMin="0" Type="None"  />
                                <Border Color="Black" InflateFactor="0" IsVisible="False" Width="1"  />
                            </FontSpec>
                        </Scale>
                        <MajorGrid Color="Black" DashOff="5" DashOn="1" IsVisible="False" PenWidth="1"  />
                    </YAxis>
                    <PaneFill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                        IsVisible="True" RangeMax="0" RangeMin="0" Type="Solid"  />
                    <ChartFill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                        IsVisible="True" RangeMax="0" RangeMin="0" Type="Brush"  />
                    <ChartBorder Color="Black" InflateFactor="0" IsVisible="True" Width="1"  />
                    <FontSpec Angle="0" Family="Arial" FontColor="Black" IsBold="True" IsItalic="False"
                        IsUnderline="False" Size="16" StringAlignment="Center">
                        <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                            IsVisible="True" RangeMax="0" RangeMin="0" Type="None"  />
                        <Border Color="Black" InflateFactor="0" IsVisible="False" Width="1"  />
                    </FontSpec>
                    <Margins Bottom="10" Left="10" Right="10" Top="10"  />
                    <Legend IsHStack="True" IsReverse="False" IsVisible="True" Position="Top">
                        <Location AlignH="Left" AlignV="Center" CoordinateFrame="ChartFraction" Height="0"
                            Width="0" X="0" Y="0">
                            <TopLeft X="0" Y="0"  />
                            <BottomRight X="0" Y="0"  />
                        </Location>
                        <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                            IsVisible="True" RangeMax="0" RangeMin="0" Type="Brush"  />
                        <Border Color="Black" InflateFactor="0" IsVisible="True" Width="1"  />
                        <FontSpec Angle="0" Family="Arial" FontColor="Black" IsBold="False" IsItalic="False"
                            IsUnderline="False" Size="12" StringAlignment="Center">
                            <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                                IsVisible="True" RangeMax="0" RangeMin="0" Type="Solid"  />
                            <Border Color="Black" InflateFactor="0" IsVisible="False" Width="1"  />
                        </FontSpec>
                    </Legend>
                </cc1:zedgraphweb>
            </td>
        </tr>
    </table>
    <br />
                <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    </div> 
    </ContentTemplate> 
    </asp:UpdatePanel> 
</asp:Content>

